home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / gdb / nindy-share / stop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-28  |  3.1 KB  |  85 lines

  1. /******************************************************************/
  2. /*         Copyright (c) 1990, Intel Corporation
  3.  
  4.    Intel hereby grants you permission to copy, modify, and
  5.    distribute this software and its documentation.  Intel grants
  6.    this permission provided that the above copyright notice
  7.    appears in all copies and that both the copyright notice and
  8.    this permission notice appear in supporting documentation.  In
  9.    addition, Intel grants this permission provided that you
  10.    prominently mark as not part of the original any modifications
  11.    made to this software or documentation, and that the name of
  12.    Intel Corporation not be used in advertising or publicity
  13.    pertaining to distribution of the software or the documentation
  14.    without specific, written prior permission.
  15.  
  16.    Intel Corporation does not warrant, guarantee or make any
  17.    representations regarding the use of, or the results of the use
  18.    of, the software and documentation in terms of correctness,
  19.    accuracy, reliability, currentness, or otherwise; and you rely
  20.    on the software, documentation and results solely at your own
  21.    risk.                              */
  22. /******************************************************************/
  23.  
  24.  
  25. /******************************************************************
  26.  *
  27.  *   REASONS WHY NINDY CAN STOP EXECUTING AN APPLICATION PROGRAM
  28.  *
  29.  * When NINDY stops executing an application program that was running
  30.  * under remote host ("gdb") control, it signals the host by sending
  31.  * a single ^P.  The host can then query as to the reason for the halt.
  32.  * NINDY responds with two bytes of information.
  33.  *
  34.  * The first byte is a boolean flag that indicates whether or not
  35.  * the application has exited.
  36.  *
  37.  * If the flag is true, the second byte contains the exit code.
  38.  *
  39.  * If the flag is false, the second byte contains a "reason for
  40.  * stopping" code.  This file defines the possible values of that
  41.  * code.
  42.  *
  43.  * There are three categories of reasons why the halt may have occurred:
  44.  * faults, traces, and software interactions.  The first two categories
  45.  * are processor-dependent; the values of these codes are tightly coupled
  46.  * to the hardware and should not be changed without first examining
  47.  * src/nindy/common/fault.c.  The software interactions involve
  48.  * communication between NINDY and the host debugger;  their codes are
  49.  * arbitrary.
  50.  *
  51.  ******************************************************************/
  52.  
  53. #define FAULT_PARALLEL    0x00
  54. #define FAULT_UNKNOWN    0x01
  55. #define FAULT_OPERATION    0x02
  56. #define FAULT_ARITH    0x03
  57. #define FAULT_FP    0x04
  58. #define FAULT_CONSTR    0x05
  59. #define FAULT_VM    0x06
  60. #define FAULT_PROTECT    0x07
  61. #define FAULT_MACHINE    0x08
  62. #define FAULT_STRUCT    0x09
  63. #define FAULT_TYPE    0x0a
  64.     /* 0x0b reserved */
  65. #define FAULT_PROCESS    0x0c
  66. #define FAULT_DESC    0x0d
  67. #define FAULT_EVENT    0x0e
  68.     /* 0x0f reserved */
  69.  
  70. #define LAST_FAULT      0x0f
  71.  
  72. #define TRACE_STEP    0x10
  73. #define TRACE_BRANCH    0x11
  74. #define TRACE_CALL    0x12
  75. #define TRACE_RET    0x13
  76. #define TRACE_PRERET    0x14
  77. #define TRACE_SVC    0x15
  78. #define TRACE_BKPT    0x16
  79.  
  80. #define STOP_SRQ    0xfe
  81.     /* Application program has service request to make of host */
  82.  
  83. #define STOP_GDB_BPT    0xff
  84.     /* Application program has reached breakpoint (fmark) set by host */
  85.